package burl

import (
	"bview"

	"github.com/gin-gonic/gin"
)

func Url(e *gin.Engine) {
	/*********************************CMS*****************************************/
	e.GET("/cms/login.html", bview.CmsloginGET)
	e.POST("/cms/loginPOST", bview.CmsloginPOST)
	e.GET("/cms/logout.html", bview.CmslogoutGET)
	e.GET("/cms/", bview.CmscheckloginstateGET, bview.CmsindexGET)
	e.GET("/cms/index.html", bview.CmscheckloginstateGET, bview.CmsindexGET)

	e.GET("/cms/blocklist.html", bview.CmscheckloginstateGET, bview.CmsblocklistGET)
	e.GET("/cms/blockadd.html", bview.CmscheckloginstateGET, bview.CmsblockaddGET)
	e.POST("/cms/blockaddPOST", bview.CmscheckloginstatePOST, bview.CmsblockaddPOST)
	e.GET("/cms/blockedit.html", bview.CmscheckloginstateGET, bview.CmsblockeditGET)
	e.POST("/cms/blockeditPOST", bview.CmscheckloginstatePOST, bview.CmsblockeditPOST)

	e.GET("/cms/articlelist.html", bview.CmscheckloginstateGET, bview.CmsarticlelistGET)
	e.GET("/cms/articleadd.html", bview.CmscheckloginstateGET, bview.CmsarticleaddGET)
	e.POST("/cms/articleaddPOST", bview.CmscheckloginstatePOST, bview.CmsarticleaddPOST)
	e.GET("/cms/articleedit.html", bview.CmscheckloginstateGET, bview.CmsarticleeditGET)
	e.POST("/cms/articleeditPOST", bview.CmscheckloginstatePOST, bview.CmsarticleeditPOST)

	/*********************************BLOG*****************************************/
	e.GET("/", bview.IndexGET)
	e.GET("/index.html", bview.IndexGET)
	e.GET("/articlelist.html", bview.ArticlelistGET)
	e.GET("/articledetail.html", bview.ArticledetailGET)

}
